<%@page import="java.awt.Button"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

<%@page import="java.util.ArrayList"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<!-- <script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> -->
<title>Thông tin kho hàng</title>

</head>
<body>
	<br>
	<br>
	<br>
	<div align="center">
		<h1 style="color: blue;">XEM THÔNG TIN KHO HÀNG</h1>
		<br>
				<table class="table1" id="cabinettable">
					<thead>
						<tr>
							<th scope="col" abbr="Starter">Mã tủ hàng</th>
							<th scope="col" abbr="Starter">Tình trạng</th>
							<th scope="col" abbr="Starter">Tên tủ hàng</th>
							<th scope="col" abbr="Starter">Số lô hiện tại</th>
							<th scope="col" abbr="Starter"></th>
							<th scope="col" abbr="Starter"></th>
						</tr>
					<thead>
						<c:forEach items="${listAllCabinet.cabinetDTOs}" var="cabinet"
							varStatus="status">
							<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
								<td>${cabinet.id}</td>
								<td>${cabinet.status}</td>
								<td>${cabinet.cabinetName}</td>
								<td>${cabinet.numberOfBatch}</td>
								<td><a href="#" onclick="updateCabinet(${cabinet.id})"><img
										src="<c:url value="/resources/images/edit-icon.png"/>" /></a></td>
								<td><a href="#" onclick="deleteCabinet(${cabinet.id})"><img
										src="<c:url value="/resources/images/delete-icon1.png"/>" /></a></td>
							</tr>
						</c:forEach>
				</table>
				<div id="cabinetpaging"></div>
				<script type="text/javascript">
								var pager = new Pager('cabinettable', 7);
								pager.init();
								pager.showPageNav('pager', 'cabinetpaging');
								pager.showPage(1);
				</script>
				<a href="#"><input class="button" id="addcabinet"
								type="button" value="Thêm"></a>
			</div>
<br>
	<br>
	<br>
	<br>
	<br>
	<br>
</body>